﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="GCView.aspx.cs" Inherits="Xiaov.SmartWeb.Application.TZGC.GCView" EnableEventValidation="false"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <style type="text/css">
        .GridViewStyle
        {
            border-style: dotted;
            border-color: #808080;
            font-size: 12px;
            border-top-width: 1px;
            border-right-width: 1px;
            border-bottom-width: 1px;
            border-left-width: 1px;
            border-collapse: collapse;
        }
        
        .GridViewHeaderStyle
        {
            font-weight: normal;
            color: #333333;
            border-collapse: collapse;
        }
        
        th
        {
            background-color: #F2F2F2;
            background-image: url('http://localhost/themes/default/images/datagrid_title_bg.png');
            height: 25px;
        }
        
        th
        {
            padding: 3px;
        }
        
        th
        {
            border-width: 1px;
            border-color: #808080;
            border-style: dotted;
            font-size: 12px;
            border-collapse: collapse;
        }
        
        .GridViewRowStyle
        {
            color: #333333;
        }
        
        .GridViewRowStyle
        {
            padding: 3px;
        }
        
        .GridViewAlternatingRowStyle
        {
            /*background-color: #E4EEFC;*/
            background-color: #F7F7F7;
        }
        
        .GridViewPagerStyle
        {
            background-color: #F7F7F7;
            color: #FFFFFF;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <table>
            <tr>
                <td>
                    <asp:CheckBox ID="CheckBox1" runat="server" Text="年度" AutoPostBack="True" Checked="True"
                        OnCheckedChanged="CheckBox1_CheckedChanged" Enabled="False" />
                    <asp:DropDownList ID="DropDownList1" runat="server" AutoPostBack="True" OnSelectedIndexChanged="DropDownList1_SelectedIndexChanged">
                    </asp:DropDownList>
                    <asp:CheckBox ID="CheckBox2" runat="server" Text="月度" Checked="True"
                        OnCheckedChanged="CheckBox2_CheckedChanged" Enabled="False" 
                        Visible="False" />
                    <asp:DropDownList ID="DropDownList2" runat="server" 
                        OnSelectedIndexChanged="DropDownList2_SelectedIndexChanged" Enabled="False" 
                        Visible="False">
                        <asp:ListItem Selected="True">0</asp:ListItem>
                        <asp:ListItem>1</asp:ListItem>
                        <asp:ListItem>2</asp:ListItem>
                        <asp:ListItem>3</asp:ListItem>
                        <asp:ListItem>4</asp:ListItem>
                        <asp:ListItem>5</asp:ListItem>
                        <asp:ListItem>6</asp:ListItem>
                        <asp:ListItem>7</asp:ListItem>
                        <asp:ListItem>8</asp:ListItem>
                        <asp:ListItem>9</asp:ListItem>
                        <asp:ListItem>10</asp:ListItem>
                        <asp:ListItem>11</asp:ListItem>
                        <asp:ListItem>12</asp:ListItem>
                    </asp:DropDownList>
                </td>
                <td>
                    <asp:Label ID="Label1" runat="server" Text="Label" Visible="False"></asp:Label>
                    <asp:Label ID="Label2" runat="server" Text="无" Visible="False"></asp:Label>
                </td>
            </tr>
            <tr>
                <td valign="top">
                    <asp:GridView ID="GridViewXM" runat="server" AutoGenerateColumns="False" OnRowDataBound="GridViewXM_RowDataBound"
                        CssClass="GridViewStyle" AllowPaging="True" 
                        OnPageIndexChanging="GridViewXM_PageIndexChanging" 
                        onselectedindexchanged="GridViewXM_SelectedIndexChanged" 
                        onrowcreated="GridViewXM_RowCreated" PageSize="18">
                        <Columns>
                            <asp:BoundField DataField="rownum" HeaderText="序号" 
                                ItemStyle-HorizontalAlign="Center">
                                <ItemStyle HorizontalAlign="Center" Width="30px"></ItemStyle>
                            </asp:BoundField>
                            <asp:BoundField DataField="XMBM" HeaderText="项目编码" 
                                ItemStyle-HorizontalAlign="Center">
                                <ItemStyle HorizontalAlign="Center" Width="200px"></ItemStyle>
                            </asp:BoundField>
                            <asp:BoundField DataField="XMMC" HeaderText="项目名称" ItemStyle-HorizontalAlign="Center">
                                <ItemStyle HorizontalAlign="Center"></ItemStyle>
                            </asp:BoundField>
                            <asp:BoundField DataField="XMND" HeaderText="项目年度" ItemStyle-Width="30px" ItemStyle-HorizontalAlign="Center">
                                <ItemStyle HorizontalAlign="Center" Width="30px"></ItemStyle>
                            </asp:BoundField>
                            <asp:BoundField DataField="XMYD" HeaderText="项目月度" ItemStyle-Width="30px" ItemStyle-HorizontalAlign="Center">
                                <ItemStyle HorizontalAlign="Center" Width="30px"></ItemStyle>
                            </asp:BoundField>
                            <asp:BoundField DataField="SSLBBM" HeaderText="所属类别编码" />
                            <asp:BoundField DataField="LBMC" HeaderText="所属类别" />
                            <asp:BoundField DataField="SX" HeaderText="排序" />
                            <asp:BoundField DataField="rowid" HeaderText="主键" />
                        </Columns>
                        <HeaderStyle CssClass="GridViewHeaderStyle" />
                        <AlternatingRowStyle CssClass="GridViewAlternatingRowStyle" />
                        <RowStyle CssClass="GridViewRowStyle" />
                        <PagerSettings FirstPageText="首页" LastPageText="末页" NextPageText="下一页" PageButtonCount="5"
                            PreviousPageText="上一页" />
                        <PagerStyle CssClass="GridViewPagerStyle" />
                    </asp:GridView>
                </td>
                <td valign="top">
                    <asp:GridView ID="GridViewGC" runat="server" AutoGenerateColumns="False" CssClass="GridViewStyle"
                        AllowPaging="True" OnPageIndexChanging="GridViewGC_PageIndexChanging" 
                        OnRowDataBound="GridViewGC_RowDataBound" 
                        onrowcreated="GridViewGC_RowCreated" PageSize="25">
                        <Columns>
                           

                            <asp:TemplateField HeaderText="选择">
                                <ItemTemplate>
                                    <asp:CheckBox ID="cbxId" runat="Server" />
                                </ItemTemplate>
                            </asp:TemplateField>

                            <asp:BoundField DataField="rownum" HeaderText="序号" ItemStyle-HorizontalAlign="Center">
                                <ItemStyle HorizontalAlign="Center" Width="30px"></ItemStyle>
                            </asp:BoundField>
                            <asp:BoundField DataField="GCBM" HeaderText="工程编码" 
                                ItemStyle-HorizontalAlign="Center">
                                <ItemStyle HorizontalAlign="Center" Width="200px"></ItemStyle>
                            </asp:BoundField>
                            <asp:BoundField DataField="GCMC" HeaderText="工程名称" ItemStyle-HorizontalAlign="Center">
                                <ItemStyle HorizontalAlign="Center"></ItemStyle>
                            </asp:BoundField>
                            <asp:BoundField DataField="GCND" HeaderText="工程年度" ItemStyle-Width="30px" ItemStyle-HorizontalAlign="Center">
                                <ItemStyle HorizontalAlign="Center" Width="30px"></ItemStyle>
                            </asp:BoundField>
                            <asp:BoundField DataField="GCYD" HeaderText="工程月度" ItemStyle-Width="30px" ItemStyle-HorizontalAlign="Center">
                                <ItemStyle HorizontalAlign="Center" Width="30px"></ItemStyle>
                            </asp:BoundField>
                            <asp:BoundField DataField="SSXMBM" HeaderText="所属项目编码" />
                            <asp:BoundField DataField="XMMC" HeaderText="所属项目" />
                            <asp:BoundField DataField="SSTZXMMC" HeaderText="投资监控中所属项目" />
                            <asp:BoundField DataField="SX" HeaderText="排序" />
                            <asp:BoundField DataField="rowid" HeaderText="主键" />
                        </Columns>
                        <HeaderStyle CssClass="GridViewHeaderStyle" />
                        <AlternatingRowStyle CssClass="GridViewAlternatingRowStyle" />
                        <RowStyle CssClass="GridViewRowStyle" />
                        <PagerSettings FirstPageText="首页" LastPageText="末页" NextPageText="下一页" PageButtonCount="8"
                            PreviousPageText="上一页" />
                        <PagerStyle CssClass="GridViewPagerStyle" />
                    </asp:GridView>
                    <asp:Button ID="Button1" runat="server" Text="完成" onclick="Button1_Click" />
                </td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>

